cmake_minimum_required(VERSION 3.12.4)

project(fimdb_unit_tests)

include_directories(${CMAKE_SOURCE_DIR})
include_directories(${SRC_FOLDER}/external/googletest/googletest/include/)
include_directories(${SRC_FOLDER}/external/googletest/googlemock/include/)
include_directories(${SRC_FOLDER}/syscheckd/db/src)
link_directories(${SRC_FOLDER}/external/googletest/lib/)
link_directories(${SRC_FOLDER}/external/sqlite/)
link_directories(${SRC_FOLDER}/external/cJSON/)
link_directories(${SRC_FOLDER}/external/openssl/)

add_subdirectory(db/dbItem/FileItem)
add_subdirectory(db/dbItem/RegistryKey)
add_subdirectory(db/dbItem/RegistryValue)
add_subdirectory(db/FIMDB/fimDBTests)
add_subdirectory(db/ComponentTest/fileInterface)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
    add_subdirectory(db/ComponentTest/registryInterface)
endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_subdirectory(db/ComponentTest/dbInterface)
